package com.sds.prolog.model;

import com.sds.system.models.IdentifiedObject;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class PrologSystemInfo implements IdentifiedObject {
    private String id;
    private long lastRefresh;

    public PrologSystemInfo() {
    }

    @Id
    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public long getLastRefresh() {
        return lastRefresh;
    }

    public void setLastRefresh(long lastRefresh) {
        this.lastRefresh = lastRefresh;
    }


    public PrologSystemInfo createClone() {
        PrologSystemInfo newInstance = new PrologSystemInfo();
        newInstance.setId(getId());
        newInstance.setLastRefresh(getLastRefresh());
        return newInstance;
    }
}
